package com.DosonLeung.homeschoolcommunication.Utils;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;

import java.io.File;

/**
 * Created by dosonleung on 12/9/14.
 */
public class AlbumUtil {
    public static void openInAlbum(Activity app,String imgPath){
        File f = new File(imgPath);
        Intent intent = new Intent();
        intent.setAction(android.content.Intent.ACTION_VIEW);
        intent.setDataAndType(Uri.fromFile(f), "image/jpeg");
        app.startActivity(intent);
    }
}
